<?php
/*========================================= JooSam =========================================/
/																							/
/	Extention:		JooSam																	/
/	Created by:		Broadcastweb.eu - Paules												/
/	Site:			http://www.broadcastweb.eu												/
/	Email:			support@broadcastweb.eu													/
/	Copyright:		2011 - 2012 (c) Broadcastweb.eu											/
/	License:		CC BY-NC-ND 3.0 ~ http://creativecommons.org/licenses/by-nc-nd/3.0/		/
/	File Version:	0004																	/
/																							/
/========================================== JooSam ========================================*/
// Joomla security
defined('_JEXEC') or die;
$joosam_version = '2.0.1';
## Import Joomla Data
JHtml::_('behavior.tooltip');
?>
<div class="JSM-Content">
<style>
	#cpanel div.icon div{
		background-color: white;
		background-position: -30px;
		display: block;
		float: left;
		border: 1px solid #EAEAEA;
		height: 97px;
		width: 108px;
		color: #565656;
		vertical-align: middle;
		text-decoration: none;
		border: 1px solid #CCC;
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
		border-radius: 5px;
		-webkit-transition-property: background-position, -webkit-border-bottom-left-radius, -webkit-box-shadow;
		-moz-transition-property: background-position, -moz-border-radius-bottomleft, -moz-box-shadow;
		-webkit-transition-duration: 0.8s;
		-moz-transition-duration: 0.8s;
	}
</style>
	<form action="<?php echo JRoute::_('index.php?option=com_joosam'); ?>" method="post" name="adminForm" id="adminForm">
	<div class="cpanel-left">
		<div id="cpanel" style="margin-top:18px;">
			<div class="icon-wrapper">
				<div class="icon">
					<a href="index.php?option=com_joosam&task=server.add">
						<img src="./templates/bluestork/images/header/icon-48-cpanel.png" />
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_001'); ?></span>
					</a>
				</div>
				<div class="icon">
					<a href="http://www.scriptplanet.eu/forum" target="_blank">
						<img src="./templates/bluestork/images/header/icon-48-help-forum.png" />
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_002'); ?></span>
					</a>
				</div>
				<div class="icon">
					<a href="index.php?option=com_joosam&view=help">
						<img src="./templates/bluestork/images/header/icon-48-help-this.png" />
						<span><?php echo JText::_('JHELP'); ?></span>
					</a>
				</div>
				<div class="icon">
					<div>
						<table style="margin:5px auto 0 auto;">
							<tr>
								<th colspan=2><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_003'); ?></th>
							</tr>
							<tr>
								<td><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_004'); ?>:</td>
								<td>
									<?php
										if(strnatcmp(phpversion(),'5.3.1') >= 0){
											echo '<span style="color:green;">'.phpversion().'</span>';
										} else{ echo '<span style="color:red;"  title="'.JText::_('COM_JOOSAM_VIEWS_JOOSAM_005').'">'.phpversion().'</span>';}
									?>
								</td>
							</tr>
							<tr>
								<td>mCrypt:</td>
								<td>
									<?php
										if(function_exists('mcrypt_module_open')){
											if(mcrypt_module_self_test('rijndael-256')){
												echo '<span style="color:green;">OK</span>';
											}
											else{
												echo '<span style="color:red;" title="'.JText::_('COM_JOOSAM_VIEWS_JOOSAM_006').'">'.JText::_('COM_JOOSAM_VIEWS_JOOSAM_007').'</span>';
											}
										}
										else{
											echo '<span style="color:red;" title="'.JText::_('COM_JOOSAM_VIEWS_JOOSAM_008').'">'.JText::_('COM_JOOSAM_VIEWS_JOOSAM_009').'</span>';
										}
									?>
								</td>
							</tr>
							<tr>
								<td>cURL:</td>
								<td>
									<?php
										if(function_exists('curl_init')){
											echo '<span style="color:green;">OK</span>';
										}
										else{
											echo '<span style="color:red;" title="'.JText::_('COM_JOOSAM_VIEWS_JOOSAM_010').'">'.JText::_('COM_JOOSAM_VIEWS_JOOSAM_011').'</span>';
										}
									?>
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="icon">
					<div>
						<table style="margin:5px auto 0 auto;">
							<tr>
								<th><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_012'); ?></th>
							</tr>
							<tr>
								<td style="width:100%;"><span style="float:left;"><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_013'); ?>: </span><?php echo $joosam_version; ?></td>
							</tr>
							<tr>
								<td style="text-align:center;" title="<?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_014'); ?>">
									<?php
										$spurl = 'http://www.scriptplanet.eu/joosam.version.php?version='.$joosam_version.'&key=5e9d44259b0bc355a2d420d58e3111ed';
										$response = get_headers($spurl, 1);
										$conn = $response[0];
										if($conn == 'HTTP/1.1 200 OK'){
											echo '<iframe src="'.$spurl.'" style="margin:auto;width:100px;height:20px; overflow:hidden;"></iframe>';
										}
										else{
											echo '<span style="color:#FF0000">'.JText::_('COM_JOOSAM_VIEWS_JOOSAM_015').'</span>';
										}
									?>
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="icon">
					<a href="http://www.spacial.com/" target="_blank" rel="nofolow">
						<img src="../media/com_joosam/images/buttons/spacial.png" />
						<span title="Go to http://www.spacial.com">Spacial.com</span>
					</a>
				</div>
			</div>
		</div>
	</div>
	<div class="cpanel-right">
		<div class="jsmTopLogo"></div>
		<fieldset class="jsm_fieldset">
			<legend><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_016'); ?></legend>
			<p><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_017'); ?></p>
			<p><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_018'); ?></p>
			<p><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_019'); ?></p>
		</fieldset>
		<fieldset class="jsm_fieldset">
			<legend><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_020'); ?></legend>
			<p><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_021'); ?></p>
		</fieldset>
		<fieldset class="jsm_fieldset">
			<legend><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_022'); ?></legend>
			<dl>
				<dt><strong><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_023'); ?></strong></dt>
				<dd><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_024'); ?></dd>
				<dt><strong><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_025'); ?></strong></dt>
				<dd><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_026'); ?></dd>
				<dt><strong><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_027'); ?></strong></dt>
				<dd><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_028'); ?></dd>
				<dt><strong><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_029'); ?></strong></dt>
				<dd><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_030'); ?></dd>
				<dt><strong><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_031'); ?></strong></dt>
				<dd><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_032'); ?></dd>
			</dl>
		</fieldset>
		<fieldset class="jsm_fieldset">
			<legend><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_033'); ?></legend>
			<p><?php echo JText::_('COM_JOOSAM_VIEWS_JOOSAM_034'); ?></p>
		</fieldset>
	</div>
	<div>
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="0" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
	</form>
</div>
<div class="clr"></div>